package cc.dd.marketing.rule.base;

import cc.dd.marketing.core.domain.RuleInnerDTO;

/**
 * 规则校验
 *
 * @author dongsufeng
 * @date 2022/9/9 11:37 AM
 */
public interface RuleChecker<T extends Rule, REQ extends RuleInnerDTO> {
    /**
     * 规则检验
     *
     * @param rule
     * @param request
     * @return
     */
    Boolean validate(T rule, REQ request);

}
